package com.swind.fast.modules.app.railway.project.component;

import java.net.URL;
import java.io.InputStream;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Component;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

import com.swind.fast.common.system.util.JwtUtil;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class RailwayComponent {

    public String getUserRealname(HttpServletRequest request) {
        String username = JwtUtil.getUserNameByToken(request);

        return username;
    }

}